#include "BinocularOperatorNode.h"

#include "Output/Console.h"
#include "ScriptCompiler/Token/Token.h"

void CBinocularOperatorNode::DebugPrint(int32_t InDepth)
{
    //print left operand
    WH::Print(U'(');

    LeftOperand->DebugPrint(InDepth);

    //print operator
    WH::Print(U' ');
    WH::Print(Operator->ToString());
    WH::Print(U' ');

    //print right operand
    RightOperand->DebugPrint(0);

    WH::Print(U')');
}

std::shared_ptr<CScriptToken> CBinocularOperatorNode::GetFirstToken()
{
    return LeftOperand->GetFirstToken();
}
